// cover some element-ui styles

.el-breadcrumb__inner,
.el-breadcrumb__inner a {
  font-weight: 400 !important;
}

.el-upload {
  input[type="file"] {
    display: none !important;
  }
}

.el-upload__input {
  display: none;
}

.cell {
  .el-tag {
    margin-right: 0;
  }
}

.small-padding {
  .cell {
    padding-left: 5px;
    padding-right: 5px;
  }
}

.fixed-width {
  .el-button--mini {
    padding: 7px 10px;
    width: 60px;
  }
}

.status-col {
  .cell {
    padding: 0 10px;
    text-align: center;

    .el-tag {
      margin-right: 0;
    }
  }
}

// to fixed https://github.com/ElemeFE/element/issues/2461
.el-dialog {
  display: flex;
  flex-direction: column;
  margin:0 !important;
  position: absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  // 待定 看具体要求到时候,写上再说
  max-height:calc(100% - 30px);
  max-width:calc(100% - 30px);
  .el-dialog__body{
    flex:1;
    // overflow: auto;
    overflow-y: auto;
    overflow-x: hidden;
  }
  .el-dialog__header .el-dialog__title{
    font-weight: 500;
  } 
}

// refine element ui upload
.upload-container {
  .el-upload {
    width: 100%;

    .el-upload-dragger {
      width: 100%;
      height: 200px;
    }
  }
}

// dropdown
.el-dropdown-menu {
  a {
    display: block
  }
}

// fix date-picker ui bug in filter-item
.el-range-editor.el-input__inner {
  display: inline-flex !important;
}
.el-input--small{
  font-size: 12px;
}
.el-dialog__header{
  border-bottom: 1px solid #e8e8e8
}
.el-notification{
  display: flex;
  align-items: center;
  // max-height: calc(100% - 16px);
  // overflow-x: hidden;
  // overflow-y: auto;
  .el-notification__content{
    margin: 0;
    // 解决英文状态下无法换行
    p{
      word-break: break-all !important;
    }
  }
}

.el-tooltip__popper {
  max-width: 400px;
  // 务必加入单词内断行属性, 不然会导致右侧空白换行 https://developer.mozilla.org/zh-CN/docs/Web/CSS/word-break
  word-break: break-all;
}

// 只是看得更明确些
.el-message-box{
  .el-message-box__content{
    .el-message-box__container{
      .el-message-box__message{
           // 解决英文状态下无法换行
            p{
              word-break: break-all !important;
            }
      }
    }
  }
}
// 或许以后还会随着心情看着调整😅😅😅
// .el-table td {
//   padding: 4px 0;
// }
.el-table th, .el-table td {
  padding: 8px 0;
}
body .el-table th{ display: table-cell!important; }
